#pragma once

#include "Control/ControlInclude.h"
#include "Util/UtilInclude.h"

#define WM_SEARCH_END	WM_APP + 0x1982
class CCheckListBox:public CListBoxEx
{
public:
  CCheckListBox(DWORD dwStyle, wstring strCaption,const CRect &rc, UINT nID);


  void	SetCurDir(wstring sDir){m_sCurDir=sDir;}	
  wstring GetCurDir();
  virtual void DrawItem(CDC *pDC,CRect rcItem, LISTBOXEX_ITEM *pItem, BOOL bSelected);
  void         RunSearch();
  void         StopSearch();
  void         SetExtName(vector<wstring>*	pVeExtName);
  void         SetCheckPointPos(CPoint pt){m_pCheckBoxpt=pt;}
  CContainer * GetContainer(){return m_pContainer;}
public:
  vector<wstring>* m_pVeExtName;
  CPoint m_pCheckBoxpt;
  wstring m_sCurDir;
  bool	m_bStop;
  HANDLE m_hThread;

};